package com.project.personnel.utils;

import lombok.Data;

import java.util.List;

@Data
public class PageUtil<E> {
    private  Integer size;
    private List<E> pageList;
    public void page(int page,int pageSize,List<E> pageList){
        this.size=pageList.size();
        this.pageList=pageList.subList(page*pageSize-(pageSize-1),page*pageSize+1);
    }
}
